package com.lenovo.testreport.user.service;

import com.lenovo.testreport.user.model.Feedback;
import com.lenovo.testreport.user.model.Userinfo;

import java.util.List;

/**
 * @author CJF
 * @date 2018/10
 */
public interface UserService {
    Userinfo findUserByName(String name);

    int addUser(Userinfo userinfo);

    int modifyUser(Userinfo user);

    int addQuestion(Feedback question);

    List<Userinfo> FindAllUser();

    List<Feedback> finAllQuestion();

    Feedback FindQuestionById(int tid);

    int updateQuestion(Feedback feedback);

    List<Feedback> finQuestionByName(String name);

    Feedback findquestionByID(Integer integer);

    Userinfo findUserById(int uid);

    int removeUser(int uid);

}
